package com.ytf.core.web.service;

import com.ytf.core.web.pojo.model.RolePermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 角色权限关联表 服务类
 * </p>
 *
 * @author YTF
 * @since 2025-05-20
 */
public interface IRolePermissionService extends IService<RolePermission> {

    Boolean removeByRoleId(Long roleId);

    Boolean removeByPermissionId(Long permissionId);

    List<Long> listPermissionIdByRoleId(Long id);

    Boolean removeByRoleIdAndPermissionId(Long roleId, List<Long> permissionsToRemove);

    Boolean existsByPermissionId(Long permissionId);
}
